"""
    topology_optimization.py - Minimize the compliance
"""

import BLES6

maxIteration = 0,
itt = 0
convergence =0



maxIteration = BLES6.initialise(1,"cant.txt")

while itt < maxIteration:
    (Py_disp, Py_alpha, Py_fixDof, Py_load) = BLES6.analysis(itt)
    
    (convergence) = BLES6.sensitivity()
    
    if convergence == 1:
        break
    
    BLES6.optimize()
    
    itt+= 1
    
BLES6.output()

#BLES6.numMat = 3

#print BLES6.numMat

print '\n'

names = [1, 2, 3, 4, 5]
print (names)

print '\n end of the line'
#disp = displacement[0]



#print (disp)